{include "`$smarty.const.ROOT`/app/admin/view/admin/INC_header.html"}
<div id="app-outlet" class="justify-center" style="height: 100vh; overflow: hidden;">
    <a-result status="{$status|default:'error'}" title="{$title|default:'发生错误，已终止处理'}" sub-title="{$message}">
        <template #extra>
            <a-button size="large" type="primary" class="margin" @click="back"><i class="fa fa-arrow-circle-left margin-right"></i> 返回上一页</a-button>
            <a-button size="large" class="margin" @click="reload"><i class="fa fa-rotate-right margin-right"></i> 刷新页面</a-button>
        </template>
    </a-result>
</div>
<script>
    //vue app
    const { createApp } = Vue;
    const { message } = antd;
    const app = createApp({
        data() {
            return {

            }
        },
        mounted() {
            //挂载成功
        },
        methods: {
            //方法
            back: function () {
                try {
                    window.history.back();
                } catch (e) {
                    message.error("无法返回上一页");
                }
            },
            reload: function () {
                window.location.reload();
            }
        }
    }).use(antd);
    //挂载
    const vm = app.mount("#app-outlet");
</script>
{include "`$smarty.const.ROOT`/app/admin/view/admin/INC_footer.html"}